package com.isp.common.model.excel;

import com.alibaba.excel.write.handler.SheetWriteHandler;

import java.io.Serializable;
import java.util.List;

/**
 * @author linsy
 * @version 1.0
 * @created 2024/3/8 17:02
 */
public class EasyExcelSheetModel implements Serializable {

    private static final long serialVersionUID = 3755600855591796145L;

    private String sheetName;
    private Class head;
    private List<? extends Object> data;
    private SheetWriteHandler sheetWriteHandler;

    public EasyExcelSheetModel() {
    }

    public EasyExcelSheetModel(String sheetName, Class head, List<? extends Object> data, SheetWriteHandler sheetWriteHandler) {
        this.sheetName = sheetName;
        this.head = head;
        this.data = data;
        this.sheetWriteHandler = sheetWriteHandler;
    }

    public String getSheetName() {
        return sheetName;
    }

    public void setSheetName(String sheetName) {
        this.sheetName = sheetName;
    }

    public Class getHead() {
        return head;
    }

    public void setHead(Class head) {
        this.head = head;
    }

    public List<? extends Object> getData() {
        return data;
    }

    public void setData(List<? extends Object> data) {
        this.data = data;
    }

    public SheetWriteHandler getSheetWriteHandler() {
        return sheetWriteHandler;
    }

    public void setSheetWriteHandler(SheetWriteHandler sheetWriteHandler) {
        this.sheetWriteHandler = sheetWriteHandler;
    }
}
